package cn.maiyar.common.constant;

/**
 * 公共常量
 *
 * @author c.c
 */
public class CommonConstant {
    // 项目版本号
    public final static String PROJECT_VERSION = "0.0.1";
    // 项目路径
    public final static String BASE_PACKAGES = "cn.maiyar";
    // 开发环境
    public final static String DEV_CODE = "dev";
    // 生产环境
    public final static String PROD_CODE = "prod";
    // 测试环境
    public final static String BETA_CODE = "beta";
    // 默认全局资源类型
    public final static String CONTENT_TYPE = "application/json;charset=utf-8";
    // 版本控制
    public final static String API_VERSION_URL = "api/{version}/";

    // 默认为空响应消息
    public final static String DEFAULT_NULL_MESSAGE = "暂无承载数据";
    // 默认成功响应消息
    public final static String DEFAULT_SUCCESS_MESSAGE = "操作成功";
    // 默认失败响应消息
    public final static String DEFAULT_FAILURE_MESSAGE = "操作失败";
    // 默认的后台账号密码
    public final static String DEFAULT_USER_PASSWORD = "123456";
    // 全局默认的正常业务状态 1 正常启用 0 未启用
    public final static int DB_STATUS_NORMAL = 1;
    // 全局默认的未删除状态 0 正常 1 已删除
    public final static int DB_NOT_DELETED = 0;

    // 默认的租户标识
    public final static String DEFAULT_TENANT_ID_NAME = "tenantId";
    // 默认的租户标识值
    public final static Long DEFAULT_TENANT_ID_PARAM = 0L;

    // 租户头信息
    public final static String TENANT_HEADER = "x-tenantId-header";
    // 域名头信息
    public final static String DOMAIN_HEADER = "x-domain-header";
    // 用户ID头信息
    public final static String USER_ID_HEADER = "x-id-header";
    // 客户端头信息
    public final static String CLIENT_HEADER = "x-client-header";
    // 用户头信息
    public final static String USER_NAME_HEADER = "x-username-header";
    // 角色头信息
    public final static String ROLE_ALIAS_HEADER = "x-role-header";

    // 日志链路追踪信息头
    public final static String TRACE_ID_HEADER = "x-traceId-header";
    // 日志链路追踪日志标志
    public final static String LOG_TRACE_ID = "traceId";
}
